/* 结算页整体布局 */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 步骤指示器 */
.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.step {
    padding: 0 25px;
    position: relative;
    color: #999;
    font-size: 18px;
    font-weight: 600;
}

.step.active {
    color: #2a5caa;
}

.step.active:after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: #2a5caa;
}

/* 两栏布局 */
.checkout-layout {
    display: flex;
    gap: 30px;
}

/* 表单区域 */
.checkout-form {
    flex: 1;
}

.section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* 表单元素样式 */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #2a5caa;
    outline: none;
}

/* 支付方式 */
.payment-options {
    display: flex;
    gap: 20px;
}

.payment-option {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option.selected {
    border-color: #2a5caa;
    background: #f5f9ff;
}

/* 订单摘要 */
.order-items {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 15px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.item-price {
    font-size: 16px;
    color: #2a5caa;
    font-weight: 500;
}

/* 订单总计 */
.order-total {
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
}

/* 提交按钮 */
#placeOrderBtn {
    width: 100%;
    padding: 18px;
    background: #2a5caa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 30px;
}

#placeOrderBtn:hover {
    background: #1d4b8f;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .checkout-layout {
        flex-direction: column;
    }
    
    .payment-options {
        flex-direction: column;
    }
}

/* 表单验证提示 */
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.has-error .error-message {
    display: block;
}

.has-error .form-control {
    border-color: #e74c3c;
}